<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title>修改文章</title>
        <meta http-equiv="content-type" content="text/html;charset=utf-8">
        <link href="<?php echo ADMIN_CSS_URL ?>mine.css" type="text/css" rel="stylesheet">
    </head>

    <body>

        <div class="div_head">
            <span>
                <span style="float:left">当前位置是：文章管理-》修改文章信息</span>
                <span style="float:right;margin-right: 8px;font-weight: bold">
                    <a style="text-decoration: none" href="__CONTROLLER__/showArticle">【返回】</a>
                </span>
            </span>
        </div>
        <div></div>

        <div style="font-size: 13px;margin: 10px 5px">
            <form action="./admin.php?c=goods&a=add" method="post" enctype="multipart/form-data">
            <table border="1" width="100%" class="table_a">
                <tr>
                    <td><input type="hidden" name="aid" value="{$oneArticle['aid']}" /></td>
                </tr>
                <tr>
                    <td>标题</td>
                    <td><input type="text" name="title" value="{$oneArticle['title']}" /></td>
                </tr>
                <tr>
                    <td>作者</td>
                    <td><input type="text" name="author" value="{$oneArticle['author']}" /></td>
                </tr>
                <tr>
                    <td>热门</td>
                    <td><input type="checkbox" name="hot" value="1" 
						<if condition="$oneArticle['hot'] eq 1 " > checked="checked" </if>
					/></td>
                </tr>
                <tr>
                    <td>最新</td>
                    <td><input type="checkbox" name="new" value="1" 
						<if condition="$oneArticle['new'] eq 1"> checked="checked" </if>
					/></td>
                </tr>
                <tr>
                    <td>分类</td>
                    <td>
                        <select name="typeid">
							<foreach name='type' item='vo'>
                            <option
								<if condition="$oneArticle['typeid'] eq $vo['tid']" >selected="selected"
									
								</if> value="{$vo['tid']}" >
								{$vo['typename']}
							</option>
							</foreach>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>图片</td>
                    <td><input type="file" name="pic"   />
					<eq name="oneArticle['pic']" value="">
					暂无缩略图
					<else/>
					<img src="__ROOT__/{$oneArticle['pic']}" height="60" width="60">
					</eq>
					</td>
                </tr>
                <tr>
                    <td>文章内容</td>
                    <td>
                        <textarea name="content" style='width:400px; height:200px;'  >{$oneArticle['content']}</textarea>
                    </td>
                </tr>
                
                <tr>
                    <td colspan="2" align="center">
                        <input type="submit" value="修改">
                    </td>
                </tr>  
            </table>
            </form>
        </div>
    </body>
</html>